package com.example.smartcitymovie.adapter;

import android.view.View;

import androidx.annotation.NonNull;
import androidx.databinding.DataBindingUtil;
import androidx.databinding.ViewDataBinding;
import androidx.recyclerview.widget.RecyclerView;
import androidx.viewbinding.ViewBinding;

/**
 * @Author: Machu
 * @Time: 2022/2/14 13:27
 * @Description: 功能描述
 */
public class BindingViewHolder<T extends ViewDataBinding> extends RecyclerView.ViewHolder {
    private T myBinding;
    public BindingViewHolder(T myBinding) {
        super(myBinding.getRoot());
        this.myBinding = myBinding;
    }

    public T getMyBinding() {
        return myBinding;
    }
}
